package com.lwc.cfdns.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lwc.cfdns.pojo.BaseEntity;

import java.io.Serializable;

import lombok.Data;

/**
 * 用户和角色关联表
 *
 * @TableName cfdns_system_admin_role
 */
@TableName(value = "cfdns_system_admin_role")
@Data
public class SystemAdminRole extends BaseEntity implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 角色id
     */
    private Long roleId;

    /**
     * 用户id
     */
    private Long adminId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}